<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>箭头函数和解构</title>
    <script>
        const person = {
            name:"jack",
            age:21,
            language: ['java','js','css']
        }



        function hello(person) {
            console.log("hello," + person.name)
            console.log("hello," + person.age)
            console.log("hello," + person.language)
        }

        hello(person);

        //传值的时候同时解构
        let heihei= ({name})=>console.log("hello," + name);

        heihei(person)


    </script>
</head>
<body>

</body>
</html>